package com.scs.application.core.aliyun.configuration;

import com.scs.application.core.aliyun.sms.handler.AliyunSmsHandler;
import com.scs.application.core.aliyun.sms.properties.AliyunSmsProperties;
import lombok.AllArgsConstructor;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableConfigurationProperties({AliyunSmsProperties.class})
@AllArgsConstructor
public class AliyunSmsConfiguration {
    @Bean
    public AliyunSmsHandler aliyunSmsHandler() {
        return new AliyunSmsHandler();
    }
}
